﻿using System;
using Volo.Abp;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace AliFox.BaseService.BaseData;

public class Job(Guid id, Guid? tenantId, string name, bool enabled, int sort, string description)
    : AuditedAggregateRoot<Guid>(id), ISoftDelete, IMultiTenant
{
    public Guid? TenantId { get; } = tenantId;

    public string Name { get; set; } = name;

    public bool Enabled { get; set; } = enabled;

    public int Sort { get; set; } = sort;

    public string Description { get; set; } = description;

    public bool IsDeleted { get; init; }
}